package main

import (
	"Demo03/part01/MyFunction"
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.Default()

	//r.LoadHTMLFiles("templates/hello01.html", "templates/hello01.html")
	r.LoadHTMLGlob("part01/templates/**/*")

	//r.Static("/s", "static")
	r.StaticFS("/s", http.Dir("part01/static"))

	//r.GET("/test", MyFunction.Hello)
	r.GET("/", MyFunction.Hello)

	r.Run()
}
